<?php
/**
 * $Id: getChequesEnCartera.json.php 22 2010-07-16 05:09:41Z corlatti $
 * @author Claudio Corlatti
 *
 */
header ( 'Content-type: application/json' );
require '../library/bootstrap/prepend.php';
IncludeHelper::inc ( 'library/dto/response/MovimientosResponse.class.php' );
IncludeHelper::inc ( 'library/session/CuentasCostos.class.php' );
IncludeHelper::inc ( 'library/session/Caja.class.php' );

$result = new MovimientosResponse();
try {
	
	$caja = new Caja();
	$movimientos = $caja->getChequesEnCartera();
	
	
	$result->result->set(true,'OK');
	$result->movimientos = $movimientos;
	
	
} catch (Exception $e){
	
	$result->result->set(false, $e->getMessage());
	
}

echo json_encode($result);
?>